package edu.gatech.oad.antlab.m7final;
import javax.swing.JButton;
import javax.swing.JFrame;
import java.awt.*;


public class StoreFrameM6 extends JFrame {

	/**
	 * This is the Frame for the Store.
	 * 
	 * @author Amy Lambeth
	 * @version 3.0 10/24/2011
	 * 
	 */
	
	private static final long serialVersionUID = 1L;

	StoreController controller;
	StorePanel store;
	/**
	 * Launch the application.
	 */
	public StoreFrameM6(WagonController wagController) {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 446, 390);

		controller = new StoreController(wagController.getWagon().getInventoryController(),60); // independence store
		store = new StorePanel(controller.getStoreInventory(),controller.getWagonInventory(), controller);
		
		add(store);
		setSize(610,517);
		setResizable(false);
	//	setUndecorated(true);
		setLocation(350,160);
		this.setVisible(false);
	}
	
	public JButton getReturn(){
		return store.getButton();
	}

	
}
